package com.ymttest.common.enums;

/**
 * 订单状态
 */
public enum OrderOperationTypeEnum {
	/**
	 * 无 0
	 */
	None(0),

	/**
	 * 取消订单 11
	 */
	Cancel(11),

	/**
	 * 退货退款 101
	 */
	SalesRefund(101),

	/**
	 * 申请售后 102
	 */
	ApplyForAfterSales(102);

	private int intValue;
	private static java.util.HashMap<Integer, OrderOperationTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, OrderOperationTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, OrderOperationTypeEnum>();
		}
		return mappings;
	}

	private OrderOperationTypeEnum(int value) {
		intValue = value;
		OrderOperationTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static OrderOperationTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}